package com.lap.auth.application.menu;

import com.lap.auth.domain.menu.Menu;
import com.lap.auth.domain.menu.repository.MenuRepository;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Service
public class MenuPermissionQueryService {

  private final MenuRepository menuRepository;

  public List<Menu> getMenusByRoles(List<Integer> roleIds) {
    return menuRepository.findMenuByRoleIds(roleIds);
  }

  public List<String> getOptionsByRoles(List<Integer> roleIds) {
    return menuRepository.findOptionsByRoleIds(roleIds);
  }
}
